import React from 'react'
import { Search,Tabbar } from 'react-vant';
import { FriendsO, HomeO,FireO,SettingO } from '@react-vant/icons';
import {Outlet,NavLink} from "react-router-dom"
function Home() {
    return (
        <div>
            <Search placeholder="请输入搜索关键词" />
            <Outlet></Outlet>
            <Tabbar>
      <Tabbar.Item icon={<HomeO />}>
          <NavLink to={"/home/index"}>首页</NavLink>
      </Tabbar.Item>
      <Tabbar.Item icon={<FireO />}>
      <NavLink to={"/home/class"}>分类</NavLink>
      </Tabbar.Item>
      <Tabbar.Item icon={<FriendsO />}>
      <NavLink to={"/home/shop"}>购物</NavLink>
      </Tabbar.Item>
      <Tabbar.Item icon={<SettingO />}>
      <NavLink to={"/home/my"}>我的</NavLink>
      </Tabbar.Item>
    </Tabbar>
        </div>
    )
}

export default Home
